home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.20020314-20021006 / 000237_fdc@columbia.edu_Thu Jul 25 14:11:44 EDT 2002.msg < prev    next >
Text File  |  2020-01-01  |  3KB  |  62 lines

  1. Article: 13550 of comp.protocols.kermit.misc
  2. Path: newsmaster.cc.columbia.edu!news.columbia.edu!news-not-for-mail
  3. From: fdc@columbia.edu (Frank da Cruz)
  4. Newsgroups: comp.os.vms,comp.protocols.kermit.misc
  5. Subject: Re: HowTo delete a remote file via FTP without user interaction?
  6. Date: 25 Jul 2002 14:03:44 -0400
  7. Organization: Columbia University
  8. Lines: 45
  9. Message-ID: <ahpei0$b38$1@watsol.cc.columbia.edu>
  10. References: <75be4573.0207240007.6257f41f@posting.google.com>
  11. NNTP-Posting-Host: watsol.cc.columbia.edu
  12. X-Trace: newsmaster.cc.columbia.edu 1027620226 12820 128.59.39.139 (25 Jul 2002 18:03:46 GMT)
  13. X-Complaints-To: postmaster@columbia.edu
  14. NNTP-Posting-Date: 25 Jul 2002 18:03:46 GMT
  15. Xref: newsmaster.cc.columbia.edu comp.os.vms:343938 comp.protocols.kermit.misc:13550
  16.  
  17. In article <75be4573.0207240007.6257f41f@posting.google.com>,
  18. Geert Marttin <GMarttin@Hotmail.com> wrote:
  19. : I'm maintaining a (DEC Pascal) program that will download updates on a
  20. : regular basis. The program consists of a loop within which it will:
  21. : - check if new files have been created on a remote directory
  22. : - copy these files to a local directory
  23. : - delete the files on the remote directory
  24. : This worked fine with DecNet but in the future we'll be using FTP for
  25. : this.
  26. : The first two were easy to modify utilizing DIR/FTP and COPY/FTP in
  27. : command files which are 'called' from the program (using $CREPRC). But
  28. : I seem unable to find a (DCL) command that will delete files via FTP?!
  29. : I am able to set up a FTP connection manually and delete the files
  30. : (with the FTP utility) but, well, that's not something my users want
  31. : to be bothered with/I want to bother my users with.
  32. : Anybody have any idea how to automate this task?
  33. Gee, too bad C-Kermit's FTP module has not been ported to VMS, because
  34. it's perfect for this:
  35.  
  36.   http://www.columbia.edu/kermit/ftpscripts.html
  37.  
  38. With Kermit, it's done with a single command:
  39.  
  40.   mget /delete <filespec>
  41.  
  42. This means: get all the files whose names match the given filespec
  43. pattern, and each time a file arrives successfully, tell the server
  44. to delete the source file.  You can think of this as *moving* the files
  45. >from  the server to the client.  If a file can't be downloaded completely
  46. for any reason, it is not deleted from the server.
  47.  
  48. By the way, you can do exactly the same if you use Kermit protocol,
  49. so if the FTP host can run C-Kermit, you could use Kermit instead of
  50. FTP and get the same effect:
  51.  
  52.   http://www.columbia.edu/kermit/ckermit.html
  53.  
  54. This topic is also covered in some depth here:
  55.  
  56.   http://www.columbia.edu/kermit/case10.html
  57.  
  58. - Frank
  59.